﻿using DataBase.DBmodels;
using DataBase.Utils;
using GreenXi.Help;
using GreenXi.Help.Curve;
using GreenXi.Model;
using GreenXi.Pages.Power;
using GreenXi.ViewModel.Utils;
using ModbusHelper;
using PressSystem_Can.Help.Can;
using Prism.Commands;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using ZedGraph;
using static GreenXi.GlobalVariables;

namespace GreenXi.ViewModel
{
    public class ManualViewModel : ManualModel
    {
        //public static PointPairList List1 = new(); //压机1初始化曲线
        //public static PointPairList List2 = new(); //压机2初始化曲线
        public static Manual context;
        public double? BottonSize { get; set; } = 40;

        public void Init()
        {
            
        }

        private string _BarcodeInfo1;
        public string BarcodeInfo1
        {
            get => _BarcodeInfo1;
            set { SetProperty(ref _BarcodeInfo1, value); }
        }

        //压机2条码信息
        private string _BarcodeInfo2;
        public string BarcodeInfo2
        {
            get => _BarcodeInfo2;
            set { SetProperty(ref _BarcodeInfo2, value); }
        }

        public ManualViewModel(Manual _context)
        {
            context = _context;
         

      
    
        }

     

   

        public void PreviewMouse_Click(object param)
        {
            var List11 = GlobalVariables.ListPress1;
            var List22 = GlobalVariables.ListPress2;
            var aa = param;
            GlobalVariables.ManualModel_Status1 = false;
        }

        
    }
}
